package com.chub.study.modules.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chub.study.modules.dto.DictInfoDTO;
import com.chub.study.modules.entity.TDictInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Collection;
import java.util.List;
import java.util.Set;

/**
 * <p>
 * 字典信息表 Mapper 接口
 * </p>
 *
 * @author Chub
 * @since 2023-04-13
 */
@Mapper
@Repository
public interface TDictInfoMapper extends BaseMapper<TDictInfo> {

    List<DictInfoDTO> getDictInfoBydictTypeCodes(@Param("dictTypeCodes") Set<String> dictTypeCodes);

    void batchInsert(@RequestBody List<TDictInfo> dictInfos) ;

    Integer insertBatchSomeColumn(Collection<TDictInfo> entityList);

}
